/* Class2 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.math.BigInteger;

public class Class2 {
	public static JString aClass3_45 = Class39_Sub5_Sub9.createJString(108, "@gr1@");
	public static JString aClass3_46 = Class39_Sub5_Sub9.createJString(106, "RuneScape wurde aktualisiert(Q");
	public static BigInteger aBigInteger47;
	public static int anInt48 = 0;
	public static int[] anIntArray49 = new int[5];
	public static int anInt50;
	public static JString aClass3_51;
	public static JString[] aClass3Array52;
	public static int anInt53;
	public static Class7 aClass7_54;
	public static volatile long aLong55;
	public static JString aClass3_56;
	public static JString aClass3_57;
	public static Class7 aClass7_58;

	public static synchronized long method51(int i) {
		long l = System.currentTimeMillis();
		if (l < Class19.aLong381)
			client.aLong1263 += Class19.aLong381 + -l;
		Class19.aLong381 = l;
		return client.aLong1263 + l;
	}

	public static void method52(JString class3, boolean bool) {
		if (class3 == null || class3.length() == 0)
			Class67.anInt1184 = 0;
		else {
			int i = 0;
			JString[] class3s = new JString[100];
			JString class3_0_ = class3;
			for (;;) {
				int i_1_ = class3_0_.indexOf(32);
				if (i_1_ == -1) {
					class3_0_ = class3_0_.trim((byte) -45);
					if (class3_0_.length() > 0)
						class3s[i++] = class3_0_.toLowerCase();
					break;
				}
				JString class3_2_ = class3_0_.substring(0, i_1_).trim((byte) -45);
				if (class3_2_.length() > 0)
					class3s[i++] = class3_2_.toLowerCase();
				class3_0_ = class3_0_.substring(i_1_ + 1);
			}
			Class67.anInt1184 = 0;
			while_1_: for (int i_3_ = 0; Class37.anInt663 > i_3_; i_3_++) {
				Class39_Sub5_Sub1 class39_sub5_sub1 = Class26.method291(-29, i_3_);
				if (class39_sub5_sub1.anInt1644 == -1 && class39_sub5_sub1.aClass3_1661 != null) {
					JString class3_4_ = class39_sub5_sub1.aClass3_1661.toLowerCase();
					for (int i_5_ = 0; i > i_5_; i_5_++) {
						if (class3_4_.indexOf(class3s[i_5_]) == -1)
							continue while_1_;
					}
					Class46_Sub1.aClass3Array1552[Class67.anInt1184] = class3_4_;
					Class62_Sub1.anIntArray1589[Class67.anInt1184] = i_3_;
					Class67.anInt1184++;
					if (Class67.anInt1184 >= Class46_Sub1.aClass3Array1552.length)
						break;
				}
			}
		}
	}

	public static void method53(int i) {
		aClass3_51 = null;
		aClass3_46 = null;
		anIntArray49 = null;
		aClass3Array52 = null;
		aClass3_57 = null;
		aClass7_58 = null;
		aBigInteger47 = null;
		aClass7_54 = null;
		aClass3_45 = null;
		aClass3_56 = null;
	}

	public static void updatePlayers(byte i) {
		Class40.anInt749 = 0;
		Class57_Sub2.anInt1586 = 0;
		Class39_Sub5_Sub4_Sub5.updatePlayerMovement(0);
		Class9.updateOtherPlayers((byte) -20);
		Class57_Sub2.addPlayers((byte) 127);
		Class46.updatePlayer((byte) -101);
		for (int i_6_ = 0; Class40.anInt749 > i_6_; i_6_++) {
			int i_7_ = Class26.anIntArray496[i_6_];
			if (Class14.aClass39_Sub5_Sub4_Sub4_Sub2Array211[i_7_].anInt2290 != anInt48)
				Class14.aClass39_Sub5_Sub4_Sub4_Sub2Array211[i_7_] = null;
		}
		if (Class40.packetSize != Class39_Sub5_Sub11.inputStream.currentOffset)
			throw new RuntimeException("gpp1 pos:" + (Class39_Sub5_Sub11.inputStream.currentOffset) + " psize:" + Class40.packetSize);
		for (int i_8_ = 0; i_8_ < CollisionMap.anInt515; i_8_++) {
			if ((Class14.aClass39_Sub5_Sub4_Sub4_Sub2Array211[Class1.anIntArray40[i_8_]]) == null)
				throw new RuntimeException("gpp2 pos:" + i_8_ + " size:" + CollisionMap.anInt515);
		}
	}

	static {
		aBigInteger47 = (new BigInteger("58778699976184461502525193738213253649000149147835990136706041084440742975821"));
		aClass3_51 = Class39_Sub5_Sub9.createJString(120, "Loaded input handler");
		aClass3Array52 = new JString[100];
		aClass3_56 = (Class39_Sub5_Sub9.createJString(109, "Ung-Ultige Verbindung mit einem Anmelde)2Server)3"));
		anInt53 = 0;
		aClass3_57 = aClass3_51;
		aLong55 = 0L;
		aClass7_54 = new Class7(64);
		aClass7_58 = new Class7(50);
	}
}
